home *** CD-ROM | disk | FTP | other *** search
- Path: sdd.hp.com!inn
- From: Jeff Grimmett <jgrimm@sdd.hp.com>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Must I free my linked lists? (GCC)
- Date: 22 Jan 1996 18:24:38 GMT
- Organization: Hewlett-Packard Company
- Message-ID: <4e0kp6$2tu@news.sdd.hp.com>
- References: <4dudic$aif@vixen.cso.uiuc.edu> <4dusp9$7k3@senator-bedfellow.MIT.EDU> <4dvn6t$lc3@hamilton.maths.tcd.ie>
- NNTP-Posting-Host: hpsdv330.sdd.hp.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2N (Windows; I; 16bit)
-
- dwmalone@maths.tcd.ie (David Malone) wrote:
-
- >I think the memory is freed in when you use malloc - in gcc or SAS/C.
-
- Can't comment on gcc since I've never used it, but this is true for SAS/C
- since at least 6.0, but...
-
- -------> It only works if you leave the program using the <--------
- ----------------------> exit() function! <-------------------------
-
- Because of this, I strongly recommend AGAINST relying on this feature of
- the compiler. It's not good practice, anyway. It ties all your programs
- to one compiler and thus limits your freedom.
-
-
-
-